<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxTraits/generic_container.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('generic__container_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">generic_container.h</div>  </div>
</div>
<div class="contents">
<a href="generic__container_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_GENERIC_CONTAINER_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_GENERIC_CONTAINER_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;boost/type_traits/is_pointer.hpp&gt;</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;boost/unordered_set.hpp&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;boost/unordered_map.hpp&gt;</span>
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;<a class="code" href="is__smart__ptr_8h.html" title="qx::trait::is_smart_ptr&lt;T&gt;::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...">QxTraits/is_smart_ptr.h</a>&gt;</span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;<a class="code" href="remove__attr_8h.html" title="qx::trait::remove_attr&lt;T&gt;::type : return a type without pointer, const, reference and/or volatile att...">QxTraits/remove_attr.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;<a class="code" href="remove__smart__ptr_8h.html" title="qx::trait::remove_smart_ptr&lt;T&gt;::type : return a type without smart-pointer attribute from boost...">QxTraits/remove_smart_ptr.h</a>&gt;</span>
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;<a class="code" href="construct__ptr_8h.html" title="qx::trait::construct_ptr&lt;T&gt;::get(T &amp; t) : instantiate a new pointer, support both nude-pointer and sm...">QxTraits/construct_ptr.h</a>&gt;</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="keyword">namespace </span>qx {
<a name="l00057"></a>00057 <span class="keyword">namespace </span>trait {
<a name="l00058"></a>00058 
<a name="l00059"></a><a class="code" href="classqx_1_1trait_1_1no__type.html">00059</a> <span class="keyword">class </span><a class="code" href="classqx_1_1trait_1_1no__type.html">no_type</a>
<a name="l00060"></a><a class="code" href="classqx_1_1trait_1_1no__type.html#a78f45ac114617d753872fdec89621e63">00060</a> { <span class="keyword">private</span>: <span class="keywordtype">void</span> <a class="code" href="classqx_1_1trait_1_1no__type.html#a78f45ac114617d753872fdec89621e63">dummy</a>()<span class="keyword"> const </span>{ ; } };
<a name="l00061"></a>00061 
<a name="l00066"></a>00066 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00067"></a><a class="code" href="structqx_1_1trait_1_1generic__container.html">00067</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>
<a name="l00068"></a><a class="code" href="structqx_1_1trait_1_1generic__container.html#a7eba8879c749d275733dc237af37b23a">00068</a> { <span class="keyword">typedef</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">no_type</a> <a class="code" href="structqx_1_1trait_1_1generic__container.html#ad5ea66d96c451990aea45ebf4861540a">type_item</a>; <span class="keyword">typedef</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">no_type</a> <a class="code" href="structqx_1_1trait_1_1generic__container.html#a78c82f99a24952355d87e2ab36db8b00">type_key</a>; <span class="keyword">typedef</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">no_type</a> <a class="code" href="structqx_1_1trait_1_1generic__container.html#a34af57be81214b80f627f36cef0f2bdd">type_value</a>; <span class="keyword">typedef</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">no_type</a> <a class="code" href="structqx_1_1trait_1_1generic__container.html#a7eba8879c749d275733dc237af37b23a">type_value_qx</a>; <span class="keyword">typedef</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">no_type</a> <a class="code" href="structqx_1_1trait_1_1generic__container.html#a964a339463dd3c1145d681f61d86c9b9">type_iterator</a>; };
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00071"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html">00071</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container__item.html">generic_container_item</a>
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5ed058a71323f30a5136feeee584a72d">00074</a>    <span class="keyword">typedef</span> Key <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5ed058a71323f30a5136feeee584a72d">type_key</a>;
<a name="l00075"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5dadb8ff61429a8f1a8d4e5d39ef4b2e">00075</a>    <span class="keyword">typedef</span> Value <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5dadb8ff61429a8f1a8d4e5d39ef4b2e">type_value</a>;
<a name="l00076"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#ad69f124a0ab2393addabce91d55618e9">00076</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1trait_1_1remove__attr.html#ab51ee0bccf6af3a9d34e467867d8354a">qx::trait::remove_attr&lt;Value&gt;::type</a> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#ad69f124a0ab2393addabce91d55618e9">type_value_qx_tmp</a>;
<a name="l00077"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a879a3f794692b18e39f0d2237015cde8">00077</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structqx_1_1trait_1_1remove__smart__ptr.html#abb0830d767ac5f6937e7da8e3d036fbd">qx::trait::remove_smart_ptr&lt;type_value_qx_tmp&gt;::type</a> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a879a3f794692b18e39f0d2237015cde8">type_value_qx</a>;
<a name="l00078"></a>00078 
<a name="l00079"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aeedd9b3da368b203701c32ed874595e3a8a10d534843a031d4fc9c05fb1b23510">00079</a>    <span class="keyword">enum</span> { <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aeedd9b3da368b203701c32ed874595e3a8a10d534843a031d4fc9c05fb1b23510">is_key_pointer</a> = (boost::is_pointer&lt;type_key&gt;::value || <a class="code" href="structqx_1_1trait_1_1is__smart__ptr.html" title="qx::trait::is_smart_ptr&lt;T&gt;::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...">qx::trait::is_smart_ptr&lt;type_key&gt;::value</a>) };
<a name="l00080"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a3efe555617b809d6f8c60919ba87d644a430581cc11bcf1955d4906dd2cb78817">00080</a>    <span class="keyword">enum</span> { <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a3efe555617b809d6f8c60919ba87d644a430581cc11bcf1955d4906dd2cb78817">is_value_pointer</a> = (boost::is_pointer&lt;type_value&gt;::value || <a class="code" href="structqx_1_1trait_1_1is__smart__ptr.html" title="qx::trait::is_smart_ptr&lt;T&gt;::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...">qx::trait::is_smart_ptr&lt;type_value&gt;::value</a>) };
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="keyword">private</span>:
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a1487eebe566a35b7a2aa786df7748be1">00084</a>    std::pair&lt;type_key, type_value&gt; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a1487eebe566a35b7a2aa786df7748be1">m_pair</a>;
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="keyword">public</span>:
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aad810ce1bc0044b78f70e925ece33bfd">00088</a>    <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aad810ce1bc0044b78f70e925ece33bfd">generic_container_item</a>() { ; }
<a name="l00089"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#af18ced730167d8cdaad9b1808cc87775">00089</a>    <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#af18ced730167d8cdaad9b1808cc87775">generic_container_item</a>(<span class="keyword">const</span> Key &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a7be63a31c3bde1def5636c4b5fcc2856">key</a>, <span class="keyword">const</span> Value &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a46a014d9be9911a28bc752c3c02417d4">value</a>) { m_pair = std::make_pair(key, value); }
<a name="l00090"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a07d5a91489370c78381aa5b29a7cfa96">00090</a>    <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a07d5a91489370c78381aa5b29a7cfa96">~generic_container_item</a>() { ; }
<a name="l00091"></a>00091 
<a name="l00092"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a7be63a31c3bde1def5636c4b5fcc2856">00092</a>    <span class="keyword">inline</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5ed058a71323f30a5136feeee584a72d">type_key</a> &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a7be63a31c3bde1def5636c4b5fcc2856">key</a>()                         { <span class="keywordflow">return</span> m_pair.first; }
<a name="l00093"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a46a014d9be9911a28bc752c3c02417d4">00093</a>    <span class="keyword">inline</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5dadb8ff61429a8f1a8d4e5d39ef4b2e">type_value</a> &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a46a014d9be9911a28bc752c3c02417d4">value</a>()                     { <span class="keywordflow">return</span> m_pair.second; }
<a name="l00094"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a703b13a0ba85b52a7d47cac46ba3e749">00094</a>    <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5ed058a71323f30a5136feeee584a72d">type_key</a> &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a703b13a0ba85b52a7d47cac46ba3e749">key</a>()<span class="keyword"> const             </span>{ <span class="keywordflow">return</span> m_pair.first; }
<a name="l00095"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aad7317e1afe2f47151d0e66489b212d7">00095</a>    <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5dadb8ff61429a8f1a8d4e5d39ef4b2e">type_value</a> &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aad7317e1afe2f47151d0e66489b212d7">value</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> m_pair.second; }
<a name="l00096"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aafdca5ae5949da3ca77d027776eaa296">00096</a>    <span class="keyword">inline</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a879a3f794692b18e39f0d2237015cde8">type_value_qx</a> &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aafdca5ae5949da3ca77d027776eaa296">value_qx</a>()               { <span class="keywordflow">return</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper.html#aa2bcb94f1ba981ce3e227dd850015ac3">value_qx_Helper&lt;is_value_pointer, type_value, type_value_qx, 0&gt;::get</a>(m_pair.second); }
<a name="l00097"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#ab4a7c32828409c91c68975c0ac552656">00097</a>    <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a879a3f794692b18e39f0d2237015cde8">type_value_qx</a> &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#ab4a7c32828409c91c68975c0ac552656">value_qx</a>()<span class="keyword"> const   </span>{ <span class="keywordflow">return</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper.html#aa2bcb94f1ba981ce3e227dd850015ac3">value_qx_Helper&lt;is_value_pointer, type_value, type_value_qx, 0&gt;::get</a>(m_pair.second); }
<a name="l00098"></a>00098 
<a name="l00099"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aaf436e04970955b49bbe21dbf530da1e">00099</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aaf436e04970955b49bbe21dbf530da1e">key</a>(<span class="keyword">const</span> Key &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a7be63a31c3bde1def5636c4b5fcc2856">key</a>)                { m_pair.first = <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#aaf436e04970955b49bbe21dbf530da1e">key</a>; }
<a name="l00100"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a09f77b73e0d30aefd92bd3c339adc4af">00100</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a09f77b73e0d30aefd92bd3c339adc4af">value</a>(<span class="keyword">const</span> Value &amp; <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a46a014d9be9911a28bc752c3c02417d4">value</a>)          { m_pair.second = <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a09f77b73e0d30aefd92bd3c339adc4af">value</a>; }
<a name="l00101"></a>00101 
<a name="l00102"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a3db68c1e6b1d81b4734a48847c78df88">00102</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5ed058a71323f30a5136feeee584a72d">type_key</a> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a3db68c1e6b1d81b4734a48847c78df88">newKey</a>()     { <span class="keywordflow">return</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html#a47c0fc522f53ddf9a36b387cdb7f162d">new_Helper&lt;is_key_pointer, type_key, 0&gt;::get</a>(); }
<a name="l00103"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item.html#ac2323086965204c7e0362f9473aca8f1">00103</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#a5dadb8ff61429a8f1a8d4e5d39ef4b2e">type_value</a> <a class="code" href="structqx_1_1trait_1_1generic__container__item.html#ac2323086965204c7e0362f9473aca8f1">newValue</a>() { <span class="keywordflow">return</span> <a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html#a47c0fc522f53ddf9a36b387cdb7f162d">new_Helper&lt;is_value_pointer, type_value, 0&gt;::get</a>(); }
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">private</span>:
<a name="l00106"></a>00106 
<a name="l00107"></a>00107    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsPointer <span class="comment">/* = true */</span>, <span class="keyword">typename</span> T, <span class="keywordtype">int</span> dummy&gt;
<a name="l00108"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html">00108</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html">new_Helper</a>
<a name="l00109"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html#a47c0fc522f53ddf9a36b387cdb7f162d">00109</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> T <span class="keyword">get</span>() { T t; <a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html#a47c0fc522f53ddf9a36b387cdb7f162d">qx::trait::construct_ptr&lt;T&gt;::get</a>(t); <span class="keywordflow">return</span> t; } };
<a name="l00110"></a>00110 
<a name="l00111"></a>00111    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keywordtype">int</span> dummy&gt;
<a name="l00112"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper_3_01false_00_01_t_00_01dummy_01_4.html">00112</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper.html">new_Helper</a>&lt;false, T, dummy&gt;
<a name="l00113"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1new___helper_3_01false_00_01_t_00_01dummy_01_4.html#a2f87b6079cf8ac2291910c3473ca7db6">00113</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> T <span class="keyword">get</span>() { <span class="keywordflow">return</span> T(); } };
<a name="l00114"></a>00114 
<a name="l00115"></a>00115    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsPointer <span class="comment">/* = true */</span>, <span class="keyword">typename</span> T, <span class="keyword">typename</span> U, <span class="keywordtype">int</span> dummy&gt;
<a name="l00116"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper.html">00116</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper.html">value_qx_Helper</a>
<a name="l00117"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper.html#aa2bcb94f1ba981ce3e227dd850015ac3">00117</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> U &amp; <span class="keyword">get</span>(T &amp; t) { <span class="keywordflow">return</span> (* t); } };
<a name="l00118"></a>00118 
<a name="l00119"></a>00119    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, <span class="keywordtype">int</span> dummy&gt;
<a name="l00120"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper_3_01false_00_01_t_00_01_u_00_01dummy_01_4.html">00120</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper.html">value_qx_Helper</a>&lt;false, T, U, dummy&gt;
<a name="l00121"></a><a class="code" href="structqx_1_1trait_1_1generic__container__item_1_1value__qx___helper_3_01false_00_01_t_00_01_u_00_01dummy_01_4.html#a67bf4a3411bfcd8326890ff41c4364f5">00121</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> U &amp; <span class="keyword">get</span>(T &amp; t) { <span class="keywordflow">return</span> t; } };
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 };
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 } <span class="comment">// namespace trait</span>
<a name="l00126"></a>00126 } <span class="comment">// namespace qx</span>
<a name="l00127"></a>00127 
<a name="l00128"></a><a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">00128</a> <span class="preprocessor">#define QX_TRAIT_GENERIC_CONTAINER_TYPEDEF(TypeContainer, TypeKey, TypeValue) \</span>
<a name="l00129"></a>00129 <span class="preprocessor">typedef qx::trait::generic_container_item&lt; TypeKey, TypeValue &gt; type_item; \</span>
<a name="l00130"></a>00130 <span class="preprocessor">typedef typename type_item::type_key type_key; \</span>
<a name="l00131"></a>00131 <span class="preprocessor">typedef typename type_item::type_value type_value; \</span>
<a name="l00132"></a>00132 <span class="preprocessor">typedef typename type_item::type_value_qx type_value_qx; \</span>
<a name="l00133"></a>00133 <span class="preprocessor">typedef typename TypeContainer::iterator type_iterator;</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00135"></a>00135 <span class="keyword">namespace </span>qx {
<a name="l00136"></a>00136 <span class="keyword">namespace </span>trait {
<a name="l00137"></a>00137 <span class="keyword">namespace </span>detail {
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Item&gt;
<a name="l00140"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html">00140</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html">generic_container_base</a>
<a name="l00141"></a>00141 {
<a name="l00142"></a>00142 
<a name="l00143"></a>00143    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, Item)
<a name="l00144"></a>00144 
<a name="l00145"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a22ab0f5b1544d95b95e79ba70bdb6395">00145</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00146"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#af3e4503ed8ceb8b600f7f05ea67de4b1">00146</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#af3e4503ed8ceb8b600f7f05ea67de4b1">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00147"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a7f2111998f7944b204d886ed6419b9ef">00147</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a7f2111998f7944b204d886ed6419b9ef">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { t.reserve(l); }
<a name="l00148"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a0ce0c648fb3019471dbf3e891468f2a9">00148</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a0ce0c648fb3019471dbf3e891468f2a9">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00149"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#ae5e8bcf508235960be0593a0a5d150cd">00149</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Item * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#ae5e8bcf508235960be0593a0a5d150cd">insertItem</a>(Container &amp; t, type_item &amp; item)  { t.push_back(item.value()); <span class="keywordflow">return</span> (&amp; t.back()); }
<a name="l00150"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a708c50a567354ed36b5df4a6f87ff2d7">00150</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#a708c50a567354ed36b5df4a6f87ff2d7">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00151"></a>00151 
<a name="l00152"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#ad56c81f02ff0a56bf3bb937219bbd3ff">00152</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00153"></a>00153    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin()); <span class="keywordflow">return</span> t.begin(); }
<a name="l00154"></a>00154 
<a name="l00155"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base.html#aaf86e879d3ff4dc78c7fe682bf13325c">00155</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00156"></a>00156    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr); <span class="keywordflow">return</span> itr; }
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 };
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Item&gt;
<a name="l00161"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html">00161</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html">generic_container_base_without_reserve</a>
<a name="l00162"></a>00162 {
<a name="l00163"></a>00163 
<a name="l00164"></a>00164    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, Item)
<a name="l00165"></a>00165 
<a name="l00166"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#aada66579d7cda66fc76b70c27ea549cd">00166</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00167"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a3a27562f71f91af4a5a2b4cd252c6e0a">00167</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a3a27562f71f91af4a5a2b4cd252c6e0a">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00168"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#aaa1f691e59920f769aeea0fe107c00f0">00168</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#aaa1f691e59920f769aeea0fe107c00f0">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { Q_UNUSED(t); Q_UNUSED(l); }
<a name="l00169"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#aa05089c972793fdff54003e8bdafddce">00169</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#aa05089c972793fdff54003e8bdafddce">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00170"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a90aacf7a9f3bc2c032fbfc4a9f2fae32">00170</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Item * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a90aacf7a9f3bc2c032fbfc4a9f2fae32">insertItem</a>(Container &amp; t, type_item &amp; item)  { t.push_back(item.value()); <span class="keywordflow">return</span> (&amp; t.back()); }
<a name="l00171"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a56b32ccd9698188493d2d4feb78fb80a">00171</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a56b32ccd9698188493d2d4feb78fb80a">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00172"></a>00172 
<a name="l00173"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a92d10168534ba33fc7d558450a1dbf82">00173</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00174"></a>00174    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin()); <span class="keywordflow">return</span> t.begin(); }
<a name="l00175"></a>00175 
<a name="l00176"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__without__reserve.html#a54c7e54ecda7c4ce03d4fbe62981d407">00176</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00177"></a>00177    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr); <span class="keywordflow">return</span> itr; }
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 };
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Item&gt;
<a name="l00182"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html">00182</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html">generic_container_base_set</a>
<a name="l00183"></a>00183 {
<a name="l00184"></a>00184 
<a name="l00185"></a>00185    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, Item)
<a name="l00186"></a>00186 
<a name="l00187"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#ad03253f9294c98bdb5e28f95f5fe94d8">00187</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00188"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#ad95ec609fd403cb6bfcf4efaac3c2362">00188</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#ad95ec609fd403cb6bfcf4efaac3c2362">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00189"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a9310ed97efd513ec5db1eb5f9be28dbe">00189</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a9310ed97efd513ec5db1eb5f9be28dbe">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { Q_UNUSED(t); Q_UNUSED(l); }
<a name="l00190"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#ae4483374be3abaeb51905fe220ad535b">00190</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#ae4483374be3abaeb51905fe220ad535b">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00191"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a4d38378683e8d3170ff7162e41ab8ef6">00191</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Item * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a4d38378683e8d3170ff7162e41ab8ef6">insertItem</a>(Container &amp; t, type_item &amp; item)  { <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>Item *<span class="keyword">&gt;</span>(&amp; (* (t.insert(item.value()).first))); }
<a name="l00192"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a9f8013bd038bf74d6cd113f1347892b7">00192</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a9f8013bd038bf74d6cd113f1347892b7">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00193"></a>00193 
<a name="l00194"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a4885e81b80bc154cb0a8c28490f0cc4f">00194</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00195"></a>00195    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin()); <span class="keywordflow">return</span> t.begin(); }
<a name="l00196"></a>00196 
<a name="l00197"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__set.html#a1294880732c1a43f9962bd0fb1a78149">00197</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00198"></a>00198    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr); <span class="keywordflow">return</span> itr; }
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 };
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Item&gt;
<a name="l00203"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html">00203</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html">generic_container_base_multi_set</a>
<a name="l00204"></a>00204 {
<a name="l00205"></a>00205 
<a name="l00206"></a>00206    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, Item)
<a name="l00207"></a>00207 
<a name="l00208"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#a74af2bfeee519612d9c1a56696b77bc6">00208</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00209"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#adc39ef67d73a0482406bc94271b478a7">00209</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#adc39ef67d73a0482406bc94271b478a7">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00210"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#ae6775eb4b85877daefdd2a06a62a0570">00210</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#ae6775eb4b85877daefdd2a06a62a0570">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { Q_UNUSED(t); Q_UNUSED(l); }
<a name="l00211"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#a0ca52daaef30906825acfbf7d02298f8">00211</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#a0ca52daaef30906825acfbf7d02298f8">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00212"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#a5e47eb83c0bd07d90b60e925309094f1">00212</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Item * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#a5e47eb83c0bd07d90b60e925309094f1">insertItem</a>(Container &amp; t, type_item &amp; item)  { <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>Item *<span class="keyword">&gt;</span>(&amp; (* (t.insert(item.value())))); }
<a name="l00213"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#ad124f9bb5cf3bd58f4c342339e209430">00213</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#ad124f9bb5cf3bd58f4c342339e209430">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00214"></a>00214 
<a name="l00215"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#a3237e37f6f0c46217a72705ffaf71a4d">00215</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00216"></a>00216    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin()); <span class="keywordflow">return</span> t.begin(); }
<a name="l00217"></a>00217 
<a name="l00218"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__multi__set.html#acb3dfca2e7891bf6c46f2b596fb5170d">00218</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00219"></a>00219    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr); <span class="keywordflow">return</span> itr; }
<a name="l00220"></a>00220 
<a name="l00221"></a>00221 };
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00224"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html">00224</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html">generic_container_base_key_value_std_style</a>
<a name="l00225"></a>00225 {
<a name="l00226"></a>00226 
<a name="l00227"></a>00227    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, Key, Value)
<a name="l00228"></a>00228 
<a name="l00229"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a11e1d2c46f13dbe41e28575717af97e7">00229</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00230"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a6ad55fb1dfd579be91cad2c9c1442b2c">00230</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a6ad55fb1dfd579be91cad2c9c1442b2c">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00231"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a0e9f0bf19b31262a46616bf7691d4c77">00231</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a0e9f0bf19b31262a46616bf7691d4c77">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { t.reserve(l); }
<a name="l00232"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a9496917e2b557451ad0373d2b7343961">00232</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a9496917e2b557451ad0373d2b7343961">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00233"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a33e10da5ebb27563c9e740408fee76cf">00233</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Value * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a33e10da5ebb27563c9e740408fee76cf">insertItem</a>(Container &amp; t, type_item &amp; item) { <span class="keywordflow">return</span> (&amp; (t.insert(std::make_pair(item.key(), item.value())).first-&gt;second)); }
<a name="l00234"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a188a07e6c21b8abdcdf8daac2514ff6c">00234</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a188a07e6c21b8abdcdf8daac2514ff6c">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00235"></a>00235 
<a name="l00236"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#a582cd95af57664d478e2b239bad83a34">00236</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00237"></a>00237    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin().second); item.key(* t.begin().first); <span class="keywordflow">return</span> t.begin(); }
<a name="l00238"></a>00238 
<a name="l00239"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__std__style.html#ae035c89a3a4044b2039e0646fbc97649">00239</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00240"></a>00240    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr.second); item.key(* itr.first); <span class="keywordflow">return</span> itr; }
<a name="l00241"></a>00241 
<a name="l00242"></a>00242 };
<a name="l00243"></a>00243 
<a name="l00244"></a>00244 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00245"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html">00245</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html">generic_container_base_key_value_multi_std_style</a>
<a name="l00246"></a>00246 {
<a name="l00247"></a>00247 
<a name="l00248"></a>00248    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, Key, Value)
<a name="l00249"></a>00249 
<a name="l00250"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a9db6b6c0f220be87b26112f70b3cfcd3">00250</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00251"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#ac9c1425ccddd280974836ab4fe594b33">00251</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#ac9c1425ccddd280974836ab4fe594b33">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00252"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#ae59a35bf07f25b457fbf4f56eef41892">00252</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#ae59a35bf07f25b457fbf4f56eef41892">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { t.reserve(l); }
<a name="l00253"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a7714badc2fab660e5be813a5f0bc324f">00253</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a7714badc2fab660e5be813a5f0bc324f">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00254"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#aa02f58b76b5763f01f83e6d0be7c73c3">00254</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Value * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#aa02f58b76b5763f01f83e6d0be7c73c3">insertItem</a>(Container &amp; t, type_item &amp; item) { <span class="keywordflow">return</span> (&amp; (t.insert(std::make_pair(item.key(), item.value()))-&gt;second)); }
<a name="l00255"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a28b114217a36b6db33f0abe85ceac331">00255</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a28b114217a36b6db33f0abe85ceac331">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00256"></a>00256 
<a name="l00257"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a18148333562414e0f7c4cfcb23ef4f14">00257</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00258"></a>00258    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin().second); item.key(* t.begin().first); <span class="keywordflow">return</span> t.begin(); }
<a name="l00259"></a>00259 
<a name="l00260"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__multi__std__style.html#a060d6a409bfb7e28f4dc06d635387e9f">00260</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00261"></a>00261    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr.second); item.key(* itr.first); <span class="keywordflow">return</span> itr; }
<a name="l00262"></a>00262 
<a name="l00263"></a>00263 };
<a name="l00264"></a>00264 
<a name="l00265"></a>00265 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Container, <span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00266"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html">00266</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html">generic_container_base_key_value_qt_style</a>
<a name="l00267"></a>00267 {
<a name="l00268"></a>00268 
<a name="l00269"></a>00269    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(Container, Key, Value)
<a name="l00270"></a>00270 
<a name="l00271"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#abb6216b468ce4d35013696d043bccab1">00271</a>    static inline <span class="keywordtype">long</span> size(const Container &amp; t)                      { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00272"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a892421279475c969519114019824ce18">00272</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a892421279475c969519114019824ce18">clear</a>(Container &amp; t)                           { t.clear(); }
<a name="l00273"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a1a99cb85da2513fa686dc98f3e4e112f">00273</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a1a99cb85da2513fa686dc98f3e4e112f">reserve</a>(Container &amp; t, <span class="keywordtype">long</span> l)                 { t.reserve(l); }
<a name="l00274"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a26c91089853ab6dda1f4e279252409c2">00274</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a26c91089853ab6dda1f4e279252409c2">createItem</a>()                              { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00275"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a6db96ba0558746b32c45d2defb76ea35">00275</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Value * <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a6db96ba0558746b32c45d2defb76ea35">insertItem</a>(Container &amp; t, type_item &amp; item) { <span class="keywordflow">return</span> (&amp; (t.insert(item.key(), item.value()).value())); }
<a name="l00276"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#ae143d1471efaec7c8d8ff6afb129cc17">00276</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#ae143d1471efaec7c8d8ff6afb129cc17">end</a>(Container &amp; t)                    { <span class="keywordflow">return</span> t.end(); }
<a name="l00277"></a>00277 
<a name="l00278"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a173326050d531e4291bcabfe0ea21e05">00278</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(Container &amp; t, type_item &amp; item)
<a name="l00279"></a>00279    { <span class="keywordflow">if</span> (t.size() &lt;= 0) { <span class="keywordflow">return</span> t.end(); }; item.value(* t.begin().value()); item.key(* t.begin().key()); <span class="keywordflow">return</span> t.begin(); }
<a name="l00280"></a>00280 
<a name="l00281"></a><a class="code" href="structqx_1_1trait_1_1detail_1_1generic__container__base__key__value__qt__style.html#a64e815af8797e917d9909fbfbb1be768">00281</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(Container &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00282"></a>00282    { itr++; <span class="keywordflow">if</span> (itr == t.end()) { <span class="keywordflow">return</span> t.end(); }; item.value(* itr.value()); item.key(* itr.key()); <span class="keywordflow">return</span> itr; }
<a name="l00283"></a>00283 
<a name="l00284"></a>00284 };
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 } <span class="comment">// namespace detail</span>
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00289"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01std_1_1vector_3_01_t_01_4_01_4.html">00289</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; std::vector&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base&lt; std::vector&lt;T&gt;, T &gt;
<a name="l00290"></a>00290 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(std::vector, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00291"></a>00291 
<a name="l00292"></a>00292 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00293"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01std_1_1list_3_01_t_01_4_01_4.html">00293</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; std::list&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_without_reserve&lt; std::list&lt;T&gt;, T &gt;
<a name="l00294"></a>00294 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(std::list, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00295"></a>00295 
<a name="l00296"></a>00296 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00297"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01std_1_1set_3_01_t_01_4_01_4.html">00297</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; std::<a class="code" href="group___qx_cache.html#ga82a848c3fbc52af86aad56812500b0fb" title="Insert object t into the cache with key sKey, associated cost lCost and insertion date-time dt...">set</a>&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_set&lt; std::set&lt;T&gt;, T &gt;
<a name="l00298"></a>00298 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(<a class="code" href="group___qx_cache.html#ga82a848c3fbc52af86aad56812500b0fb" title="Insert object t into the cache with key sKey, associated cost lCost and insertion date-time dt...">std::set</a>, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00299"></a>00299 
<a name="l00300"></a>00300 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00301"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01std_1_1map_3_01_key_00_01_value_01_4_01_4.html">00301</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; std::map&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_std_style&lt; std::map&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00302"></a>00302 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(std::map, Key, Value), Key, Value) };
<a name="l00303"></a>00303 
<a name="l00304"></a>00304 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00305"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01boost_1_1unordered__set_3_01_t_01_4_01_4.html">00305</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; boost::unordered_set&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_set&lt; boost::unordered_set&lt;T&gt;, T &gt;
<a name="l00306"></a>00306 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(boost::unordered_set, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00307"></a>00307 
<a name="l00308"></a>00308 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00309"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01boost_1_1unordered__multiset_3_01_t_01_4_01_4.html">00309</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; boost::unordered_multiset&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_multi_set&lt; boost::unordered_multiset&lt;T&gt;, T &gt;
<a name="l00310"></a>00310 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(boost::unordered_multiset, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00311"></a>00311 
<a name="l00312"></a>00312 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00313"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01boost_1_1unordered__map_3_01_key_00_01_value_01_4_01_4.html">00313</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; boost::unordered_map&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_std_style&lt; boost::unordered_map&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00314"></a>00314 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(boost::unordered_map, Key, Value), Key, Value) };
<a name="l00315"></a>00315 
<a name="l00316"></a>00316 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00317"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01boost_1_1unordered__multimap_3_01_key_00_01_value_01_4_01_4.html">00317</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; boost::unordered_multimap&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_multi_std_style&lt; boost::unordered_multimap&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00318"></a>00318 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(boost::unordered_multimap, Key, Value), Key, Value) };
<a name="l00319"></a>00319 
<a name="l00320"></a>00320 <span class="preprocessor">#ifdef _QX_CPP_11_CONTAINER</span>
<a name="l00321"></a>00321 <span class="preprocessor"></span><span class="preprocessor">#ifndef BOOST_NO_CXX11_STD_UNORDERED</span>
<a name="l00322"></a>00322 <span class="preprocessor"></span>
<a name="l00323"></a>00323 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00324"></a>00324 <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; std::unordered_set&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_set&lt; std::unordered_set&lt;T&gt;, T &gt;
<a name="l00325"></a>00325 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(std::unordered_set, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00326"></a>00326 
<a name="l00327"></a>00327 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00328"></a>00328 <span class="keyword">struct </span>generic_container&lt; std::unordered_multiset&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_multi_set&lt; std::unordered_multiset&lt;T&gt;, T &gt;
<a name="l00329"></a>00329 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(std::unordered_multiset, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00330"></a>00330 
<a name="l00331"></a>00331 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00332"></a>00332 <span class="keyword">struct </span>generic_container&lt; std::unordered_map&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_std_style&lt; std::unordered_map&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00333"></a>00333 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(std::unordered_map, Key, Value), Key, Value) };
<a name="l00334"></a>00334 
<a name="l00335"></a>00335 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00336"></a>00336 <span class="keyword">struct </span>generic_container&lt; std::unordered_multimap&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_multi_std_style&lt; std::unordered_multimap&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00337"></a>00337 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(std::unordered_multimap, Key, Value), Key, Value) };
<a name="l00338"></a>00338 
<a name="l00339"></a>00339 <span class="preprocessor">#endif // BOOST_NO_CXX11_STD_UNORDERED</span>
<a name="l00340"></a>00340 <span class="preprocessor"></span><span class="preprocessor">#endif // _QX_CPP_11_CONTAINER</span>
<a name="l00341"></a>00341 <span class="preprocessor"></span>
<a name="l00342"></a>00342 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00343"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_vector_3_01_t_01_4_01_4.html">00343</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QVector&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base&lt; QVector&lt;T&gt;, T &gt;
<a name="l00344"></a>00344 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(QVector, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00345"></a>00345 
<a name="l00346"></a>00346 <span class="preprocessor">#if (QT_VERSION &gt;= 0x040700)</span>
<a name="l00347"></a>00347 <span class="preprocessor"></span>
<a name="l00348"></a>00348 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00349"></a>00349 <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QList&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base&lt; QList&lt;T&gt;, T &gt;
<a name="l00350"></a>00350 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(QList, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00351"></a>00351 
<a name="l00352"></a>00352 <span class="preprocessor">#else // (QT_VERSION &gt;= 0x040700)</span>
<a name="l00353"></a>00353 <span class="preprocessor"></span>
<a name="l00354"></a>00354 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00355"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_list_3_01_t_01_4_01_4.html">00355</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QList&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_without_reserve&lt; QList&lt;T&gt;, T &gt;
<a name="l00356"></a>00356 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(QList, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00357"></a>00357 
<a name="l00358"></a>00358 <span class="preprocessor">#endif // (QT_VERSION &gt;= 0x040700)</span>
<a name="l00359"></a>00359 <span class="preprocessor"></span>
<a name="l00360"></a>00360 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00361"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_linked_list_3_01_t_01_4_01_4.html">00361</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QLinkedList&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_without_reserve&lt; QLinkedList&lt;T&gt;, T &gt;
<a name="l00362"></a>00362 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(QLinkedList, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00363"></a>00363 
<a name="l00364"></a>00364 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00365"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_set_3_01_t_01_4_01_4.html">00365</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QSet&lt;T&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_multi_set&lt; QSet&lt;T&gt;, T &gt;
<a name="l00366"></a>00366 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#a994de860b96437a5a398af1bf6261761">QX_TEMPLATE_T_P1</a>(QSet, T), <a class="code" href="classqx_1_1trait_1_1no__type.html">qx::trait::no_type</a>, T) };
<a name="l00367"></a>00367 
<a name="l00368"></a>00368 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00369"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_map_3_01_key_00_01_value_01_4_01_4.html">00369</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QMap&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_qt_style&lt; QMap&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00370"></a>00370 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(QMap, Key, Value), Key, Value) };
<a name="l00371"></a>00371 
<a name="l00372"></a>00372 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00373"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_multi_map_3_01_key_00_01_value_01_4_01_4.html">00373</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QMultiMap&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_qt_style&lt; QMultiMap&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00374"></a>00374 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(QMultiMap, Key, Value), Key, Value) };
<a name="l00375"></a>00375 
<a name="l00376"></a>00376 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00377"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_hash_3_01_key_00_01_value_01_4_01_4.html">00377</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QHash&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_qt_style&lt; QHash&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00378"></a>00378 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(QHash, Key, Value), Key, Value) };
<a name="l00379"></a>00379 
<a name="l00380"></a>00380 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00381"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01_q_multi_hash_3_01_key_00_01_value_01_4_01_4.html">00381</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; QMultiHash&lt;Key, Value&gt; &gt; : <span class="keyword">public</span> qx::trait::detail::generic_container_base_key_value_qt_style&lt; QMultiHash&lt;Key, Value&gt;, Key, Value &gt;
<a name="l00382"></a>00382 { <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(QMultiHash, Key, Value), Key, Value) };
<a name="l00383"></a>00383 
<a name="l00384"></a>00384 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value&gt;
<a name="l00385"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html">00385</a> <span class="keyword">struct </span><a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">generic_container</a>&lt; qx::<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection</a>&lt;Key, Value&gt; &gt;
<a name="l00386"></a>00386 {
<a name="l00387"></a>00387 
<a name="l00388"></a>00388    <a class="code" href="generic__container_8h.html#a4c12ea69bd1d7927289af6e7b306dfbf">QX_TRAIT_GENERIC_CONTAINER_TYPEDEF</a>(<a class="code" href="_qx_macro_8h.html#ad4e685aea2b9a51104f813e1ba51f0b3">QX_TEMPLATE_T_P1_P2</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection</a>, Key, Value), Key, Value)
<a name="l00389"></a>00389 
<a name="l00390"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a09777bc1d12fe69d0fe17cbd6626d199">00390</a>    static inline <span class="keywordtype">long</span> size(const qx::<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection</a>&lt;Key, Value&gt; &amp; t)                        { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(t.size()); }
<a name="l00391"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a402faa71393e0d600959476699891f72">00391</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a402faa71393e0d600959476699891f72">clear</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection&lt;Key, Value&gt;</a> &amp; t)                             { t.<a class="code" href="classqx_1_1_qx_collection.html#ab258660dfa4167780d71e9abd1e631e7" title="Remove all items from the list.">clear</a>(); }
<a name="l00392"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a8f1fd6b9b1b3819720c95c5ca47773d5">00392</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a8f1fd6b9b1b3819720c95c5ca47773d5">reserve</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection&lt;Key, Value&gt;</a> &amp; t, <span class="keywordtype">long</span> l)                   { t.<a class="code" href="classqx_1_1_qx_collection.html#a47133ed5f3d4902f017399bdf5e0e12d" title="Request that the capacity of the allocated storage space for the items of the container be at least e...">reserve</a>(l); }
<a name="l00393"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a15074e8682eea3e82836283fa840c417">00393</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_item <a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a15074e8682eea3e82836283fa840c417">createItem</a>()                                                   { <span class="keywordflow">return</span> type_item(type_item::newKey(), type_item::newValue()); }
<a name="l00394"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a3c899a815a1751d8f60fd38a5800661c">00394</a>    <span class="keyword">static</span> <span class="keyword">inline</span> Value * <a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a3c899a815a1751d8f60fd38a5800661c">insertItem</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection&lt;Key, Value&gt;</a> &amp; t, type_item &amp; item)   { t.<a class="code" href="classqx_1_1_qx_collection.html#a0f4fa1d6008d5910103be9037f20665b" title="Add element &#39;value&#39; at the end of the list indexed by &#39;key&#39;.">insert</a>(item.key(), item.value()); <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>Value *<span class="keyword">&gt;</span>(&amp; t.<a class="code" href="classqx_1_1_qx_collection.html#a5b11fea19689fde42c070e2f97c43a73" title="Return the item associated with the &#39;key&#39;.">getByKey</a>(item.key())); }
<a name="l00395"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#afc76661e988401eae19be9fa75915f96">00395</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator <a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#afc76661e988401eae19be9fa75915f96">end</a>(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection&lt;Key, Value&gt;</a> &amp; t)                      { <span class="keywordflow">return</span> t.<a class="code" href="classqx_1_1_qx_collection.html#af0f9ad86d2994c53166a19d5e6371a2f" title="Return an STL-style iterator pointing to the imaginary item after the last item in the list...">end</a>(); }
<a name="l00396"></a>00396 
<a name="l00397"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#aebcfd5b001d2b6b3f230631790b7dcbd">00397</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator begin(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection&lt;Key, Value&gt;</a> &amp; t, type_item &amp; item)
<a name="l00398"></a>00398    { <span class="keywordflow">if</span> (t.<a class="code" href="classqx_1_1_qx_collection.html#a7977eb06f18f7055433365cbb2fbf5fa" title="Return the number of items in the list (same as &#39;count()&#39;)">size</a>() &lt;= 0) { <span class="keywordflow">return</span> t.<a class="code" href="classqx_1_1_qx_collection.html#af0f9ad86d2994c53166a19d5e6371a2f" title="Return an STL-style iterator pointing to the imaginary item after the last item in the list...">end</a>(); }; item.value(t.<a class="code" href="classqx_1_1_qx_collection.html#ab20d863744dee2eac0752757e027e8be" title="Return the item at index position &#39;index&#39;.">getByIndex</a>(0)); item.key(t.<a class="code" href="classqx_1_1_qx_collection.html#a416faccd5e60a423a3d594eef2a3f99c" title="Return the key associated with the element at index position &#39;index&#39;.">getKeyByIndex</a>(0)); <span class="keywordflow">return</span> t.<a class="code" href="classqx_1_1_qx_collection.html#a85be86f1e03076a396283ec590c4de6f" title="Return an STL-style iterator pointing to the first item in the list.">begin</a>(); }
<a name="l00399"></a>00399 
<a name="l00400"></a><a class="code" href="structqx_1_1trait_1_1generic__container_3_01qx_1_1_qx_collection_3_01_key_00_01_value_01_4_01_4.html#a7eefce523e3a8b3c172d777e63993ea9">00400</a>    <span class="keyword">static</span> <span class="keyword">inline</span> type_iterator next(<a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">qx::QxCollection&lt;Key, Value&gt;</a> &amp; t, type_iterator itr, type_item &amp; item)
<a name="l00401"></a>00401    { itr++; <span class="keywordflow">if</span> (itr == t.<a class="code" href="classqx_1_1_qx_collection.html#af0f9ad86d2994c53166a19d5e6371a2f" title="Return an STL-style iterator pointing to the imaginary item after the last item in the list...">end</a>()) { <span class="keywordflow">return</span> t.<a class="code" href="classqx_1_1_qx_collection.html#af0f9ad86d2994c53166a19d5e6371a2f" title="Return an STL-style iterator pointing to the imaginary item after the last item in the list...">end</a>(); }; <span class="keywordtype">long</span> l = (itr - t.<a class="code" href="classqx_1_1_qx_collection.html#a85be86f1e03076a396283ec590c4de6f" title="Return an STL-style iterator pointing to the first item in the list.">begin</a>()); item.value(t.<a class="code" href="classqx_1_1_qx_collection.html#ab20d863744dee2eac0752757e027e8be" title="Return the item at index position &#39;index&#39;.">getByIndex</a>(l)); item.key(t.<a class="code" href="classqx_1_1_qx_collection.html#a416faccd5e60a423a3d594eef2a3f99c" title="Return the key associated with the element at index position &#39;index&#39;.">getKeyByIndex</a>(l)); <span class="keywordflow">return</span> itr; }
<a name="l00402"></a>00402 
<a name="l00403"></a>00403 };
<a name="l00404"></a>00404 
<a name="l00405"></a>00405 } <span class="comment">// namespace trait</span>
<a name="l00406"></a>00406 } <span class="comment">// namespace qx</span>
<a name="l00407"></a>00407 
<a name="l00408"></a>00408 <span class="preprocessor">#endif // _QX_GENERIC_CONTAINER_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="generic__container_8h.html">generic_container.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:06 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
